Component({
  properties: {
    index: Number,
    pro: Object
  },
  data: {
    num: 0
  },
  methods: {
    reduce() {
      this.setData({
        num: this.data.num - 1
      })
    },
    add() {
      this.setData({
        num: this.data.num + 1
      });
    }
  }
})
